/**
 * LawDataTagService.java
 * 2008-3-13
 * @author 屈甲康
   qujiakang@gmail.com
 */
package org.jackysoft.service;

import java.util.Collection;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.OfficeDataValue;
import org.springframework.dao.DataAccessException;

/**
 * @author 屈甲康 QQ285799123
 * 
 */
public interface OfficeDataRegionService extends
		ServiceProvider<OfficeDataValue> {
	final static Log logger = LogFactory.getLog(OfficeDataRegionService.class);

	Collection<OfficeDataValue> findAllByRefname(String pname)
			throws DataAccessException;

	Collection<OfficeDataValue> findAllByRefid(long beanId)
			throws DataAccessException;

	String getValue(long workflow, String name) throws DataAccessException;

	void removeByName(long refid,String name)
			throws DataAccessException;

	void removeByRefid(long refid)
			throws DataAccessException;
	void removeByRefname(String refname);
}
